<?php
$GLOBALS['cfg_plugin_api_public_url'] ='/'.str_replace('\\','/',str_replace(BASEPATH,'',dirname(__FILE__))).'/public/';
//后台路由规则引入
if(defined('ISADMIN'))
{
    include 'admin_init.php';
}
/**前台路由规则**/
$routeFile = ISMOBILE == 1 ? 'm' : 'pc';
include $routeFile . '_init.php';

//用于服务接口的调用
Route::set('api_service', 'api/service(/<controller>(/<action>(/<params>)))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'index',
        'action' => 'index',
        'directory' =>'pc/service',

));


